CC = gcc
CPP = g++
RM = rm

SRC_PATH := .

TARGET := bfs_check

SRCS += $(wildcard $(SRC_PATH)/bfs_check.cpp)
OBJS := $(notdir $(SRCS:.cpp=.o))

build:
	$(CPP) -c $(SRCS)
	$(CPP) -o $(TARGET) $(OBJS)
	$(RM) $(OBJS)

clean:
	$(RM) $(OBJS) $(TARGET)

facebook_run:
	./$(TARGET) ../../data/edge_off_facebook.txt ../../data/edge_list_facebook_reorder_64bram_32pipe.txt ../../result/facebook_bfs.txt

wiki_run:
	./$(TARGET) ../../data/edge_off_wiki.txt ../../data/edge_list_wiki_reorder_64bram_32pipe.txt ../../result/wiki_bfs.txt

gplus_run:
	./$(TARGET) ../../data/edge_off_gplus.txt ../../data/edge_list_gplus_reorder_64bram_32pipe.txt ../../result/gplus_bfs.txt

orkut_run:
	./$(TARGET) ../../data/edge_off_orkut.txt ../../data/edge_list_orkut_reorder_64bram_32pipe.txt ../../result/orkut_bfs.txt

rmat19_run:
	./$(TARGET) ../../data/edge_off_rmat19.txt ../../data/edge_list_rmat19_reorder_64bram_32pipe.txt ../../result/rmat19_bfs.txt

rmat20_run:
	./$(TARGET) ../../data/edge_off_rmat20.txt ../../data/edge_list_rmat20_reorder_64bram_32pipe.txt ../../result/rmat20_bfs.txt

rmat21_run:
	./$(TARGET) ../../data/edge_off_rmat21.txt ../../data/edge_list_rmat21_reorder_64bram_32pipe.txt ../../result/rmat21_bfs.txt

rmat22_run:
	./$(TARGET) ../../data/edge_off_rmat22.txt ../../data/edge_list_rmat22_reorder_64bram_32pipe.txt ../../result/rmat22_bfs.txt